package com.example.wastes.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wastes.admin.mapper.AdminMapper;
import com.example.wastes.admin.service.AdminService;
import com.example.wastes.common.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin tologin(String username) {
        return adminMapper.tologin(username);
    }

    @Override
    public List<Admin> findAdminName(String username) {
        return adminMapper.findAdminName(username);
    }

    @Override
    public int saveAdmin(String username, String password) {
        return adminMapper.saveAdmin(username, password);
    }
}
